package org.esk.dablog.dao;

import org.esk.dablog.model.entries.Ride;
import org.esk.dablog.model.Comment;
import org.esk.dablog.model.Entry;

import java.util.List;
import java.util.Date;

/**
 * This class provides Comment-specific functions
 * User: esk
 * Date: 09.12.2006
 * Time: 21:53:33
 * $Id:$
 */
public interface CommentDAO {

    /**
     * saves or updates Comment in the database
     * @param c
     */
    void saveComment(Comment c);

    /**
     * loads Comment instance
     * @param commentId
     * @return
     */
    Comment getComment(long commentId);

    /**
     * returns paginated comments to the entry
     * @param entry
     * @param start
     * @param count
     * @return
     */
    List<Comment> listComments(Entry entry, int start, int count);
}
